Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change enums usage to work on all supported python versions #329

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

ds-filipknefel
Copy link
Contributor

Class derived from str and Enum did not behave as expected in python 3.12. Changed usage to work with all supported versions.

@mpolomdeepsense
Copy link
Contributor

We don't run integration tests on python 3.12 in CI and this issue occurred only in this specific version. We should consider adding test runs for more python versions. (I tried adding it here but there was some python 3.12 caching issue, so I decided it would be better to add with a separate issue).

Here are screens from local neo4j tests run main vs this branch:

Branch Screenshot
main (integration tests) Screenshot from 2025-01-14 13-50-46
main (manual ingest test) image
fix/neo4j-version-agnostic-enums (integration tests) Screenshot from 2025-01-14 13-49-18
fix/neo4j-version-agnostic-enums (manual ingest test) image

This reverts commit 7de281c.
@@ -122,4 +122,5 @@ jobs:
make install-base
make install-test
pip install unstructured
python -c "from unstructured.nlp.tokenize import download_nltk_packages; download_nltk_packages()"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added it because there was an error with nltk packages being not available

Copy link
Contributor

@mpolomdeepsense mpolomdeepsense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filip said: LGTM. It's his PR so he can't approve :d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants